package com.wrupple.muba.catalogs.client.events;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.shared.GwtEvent;
import com.wrupple.muba.catalogs.client.view.SelectionToolbar.SelectionRequestHandler;

public class DataSelectionRequest extends GwtEvent<SelectionRequestHandler> {

	public static final Type<SelectionRequestHandler> TYPE = new Type<SelectionRequestHandler>();

	private Iterable<? extends JavaScriptObject> visibleData;
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<SelectionRequestHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SelectionRequestHandler handler) {
		handler.onSelectionReques(this);
	}

	public Iterable<? extends JavaScriptObject> getVisibleData() {
		return visibleData;
	}

	public void setVisibleData(Iterable<? extends JavaScriptObject> iterable) {
		this.visibleData = iterable;
	}
	
	
}
